package cate.game.role.res.call.msg;

import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBHeroCall;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "是否开启自动分解 の 请求")
public class CallHeroAutoResolveReq implements MsgInput {
    @NoteField(value = "是否开启自动分解")
    public boolean autoResolve;

    @Override
    public void execute(GameBody game, ClientContext cc) {
        cc.getRole().getRes().callPO.setAutoResolve(autoResolve);
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBHeroCall.HERO_AUTO_RESOLVE_REQ;
    }
}
